<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页登录</title>
</head>
<body>
    <form th:action="@{/admin/submit}" method="post">
        <input type="hidden"  name="${_csrf.parameterName}"  value="${_csrf.token}" />
        <label for="username">
            用户名: <input type="text" name="username" id="username" />
        </label><br />
        <label for="password">
            密码: <input type="password" name="password" id="password" />
        </label><br />
        <input type="submit" value="登录" />
    </form>
</body>
</html>